package pandora.bo.AVC;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

import pandora.data.IPriceDAO;
import pandora.data.IProductDAO;
import pandora.data.IStoreDAO;
import pandora.data.mysql.JDBCPriceDAO;
import pandora.data.mysql.JDBCProductDAO;
import pandora.data.mysql.JDBCStoreDAO;
import pandora.dto.PriceDTO;
import pandora.dto.ProductDTO;
import pandora.dto.StoreDTO;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ISearch s= new Search();
		List<PriceDTO> prueba= new LinkedList<PriceDTO>();
		//String aux="coco";
		//System.out.println(aux);
		IPriceDAO pricedao= new JDBCPriceDAO();;
		IProductDAO prdao = new JDBCProductDAO();
		IStoreDAO sdao = new JDBCStoreDAO();
		List<ProductDTO> ls = prdao.selectAllProducts();
		List<StoreDTO> stores = sdao.getAllStores();
		//List<PriceDTO> lp= new ArrayList<PriceDTO>();
		//System.out.println(stores);
		//System.out.println(ls);
		//ProductDTO paux= new ProductDTO();

		//System.out.println(ls);
		prueba.addAll(s.GenericSearch(ls.get(1)));
		//paux=ls.get(4);
		//System.out.println(paux);
		
		/*
		for(PriceDTO p1: s.GenericSearch(paux)){
			prueba.add(p1);
		}*/
		
		//System.out.println(prueba.get(2).getProduct().getProductName());
		
		for(PriceDTO p1: prueba){
			System.out.println(p1.getStore().getStoreName());
		}
		
		
	}
}
